package main

import "fmt"

func main() {
	
}

func coordinateWithChan() {
	sign := make(chan struct{}, 2)
	num := int32(0)
	fmt.Printf("The number: %d [with chan struct{}]\n", num)
	max := int32(10)
	go addNum(&num, 1, max, func ()  {
		
	})
}


func addNum(numP *int32, id, max int32,deferFunc func()){
	defer func(){
		deferFunc()
	}()

	for i := 0; ; i++ {
		
	}
}


